package com.zhuhjay.service.system.model.vo;

import com.zhuhjay.service.system.model.domain.FileCounter;
import lombok.Data;

import java.util.List;

/**
 * @author ZhuHJay
 * @date 2023/4/11 21:05
 */
@Data
public class FilesCounterInfoVo {

    /**
     * 文件统计信息
     */
    private List<FileCounter> fileCounters;
    /**
     * 系统中总的文件数
     */
    private long fileCount;
    /**
     * 系统中总的unique文件数(去重)
     */
    private long uniqueFileCount;
    /**
     * 目录下共有多少个文件
     */
    private long realFileCount;
    /**
     * 目录下总共占用 MB
     */
    private double realTakeUpSpace;
    /**
     * 系统中总的占用 MB
     */
    private double takeUpSpace;

    public void addFileCount(long count) {
        this.fileCount += count;
    }

    public void addTakeUpSpace(double space) {
        this.takeUpSpace += space;
    }

    public void increaseRealFileCount() {
        this.realFileCount++;
    }

    public void addRealTakeUpSpace(double space) {
        this.realTakeUpSpace += space;
    }

}
